{% extends 'oratk_app/master.html' %}
{% block title %}
    <title>{{ select_name }}</title>
{% endblock %}
{% block tag_left %}
    <h3>&nbsp数据库信息</h3>
    <h4>{{ db_info.db_name }}</h4>
    <h4>&nbsp{{ db_info.db_conn }}</h4>
    <h3>&nbsp报告生成时间</h3>
    <h4>&nbsp{{ time_record }} </h4>
    <h3>&nbsp报告信息： </h3>
{% endblock %}
{% block userinfo %}
    <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <div class="table-responsive">
            <h2 class="page-header">说明</h2>
            <div class="text-info">
                <li>
                    报告只保留最近的一份
                </li>
                &nbsp
                <li>
                    当阀值改变时报告会重新生成
                </li>
                &nbsp
            </div>
            <h2 class="page-header">主机信息</h2>
            <div id="table_host">
{#                        {% for i in  res_list %}#}
{#                            <table class="table table-striped table-bordered table-hover">#}
{#                    <span style="color: #31708f;">#}
{#                        {% if i.title_info %}#}
{#                            {{ i.title_info  }} &nbsp#}
{#                        {% endif %}#}
{#                    </span>#}
{#                    <span style="color:red;">{{ i.host_limit }}</span>#}
{#                    <thead>#}
{#                    <tr>#}
{#                        {% for col_name in i.host_columns %}#}
{#                            <th>{{ col_name }}</th>#}
{#                        {% endfor %}#}
{#                    </tr>#}
{#                    </thead>#}
{#                    <tbody>#}
{#                    {% for ii in i.val %}#}
{#                        <tr>#}
{#                            {% for iii in ii %}#}
{#                                <td>{{ iii }}</td>#}
{#                            {% endfor %}#}
{#                        </tr>#}
{#                    {% endfor %}#}
{#                    </tbody>#}
{#                </table>#}
{#            {% endfor %}#}
                <table class="table table-striped table-bordered table-hover">
                    <span style="color: #31708f;">
                        {% if title_info_0 %}
                            {{ title_info_0 }} &nbsp
                        {% endif %}
                    </span>
                    <span style="color:red;">{{ host_limit_0 }}</span>
                    <thead>
                    <tr>
                        {% for col_name in host_columns0 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in val0 %}
                        <tr>
                            {% for ii in i %}
                                <td>{{ ii }}</td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover">
                    <span style="color: #31708f;">                        {% if title_info_1 %}
                        {{ title_info_1 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;">{{ host_limit_1 }}</span>

                    <thead>
                    <tr>
                        {% for col_name in host_columns1 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in val1 %}
                        <tr>
                            {% for ii in i %}
                                <td>{{ ii }}</td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover">
                    <span style="color: #31708f;">                        {% if title_info_2 %}
                            {{ title_info_2 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;">{{ host_limit_2 }}</span>

                    <thead>
                    <tr>
                        {% for col_name in host_columns2 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in val2 %}
                        <tr>
                            {% for ii in i %}
                                <td>{{ ii }}</td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover">
                    <span style="color: #31708f;">                        {% if title_info_3 %}
                            {{ title_info_3 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;">{{ host_limit_3 }}</span>

                    <thead>
                    <tr>
                        {% for col_name in host_columns3 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in val3 %}
                        <tr>
                            {% for ii in i %}
                                <td>{{ ii }}</td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover">
                    <span style="color: #31708f;">                        {% if title_info_4 %}
                            {{ title_info_4 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;">{{ host_limit_4 }}</span>

                    <thead>
                    <tr>
                        {% for col_name in host_columns4 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in val4 %}
                        <tr>
                            {% for ii in i %}
                                <td>{{ ii }}</td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover">
                    <span style="color: #31708f;">                        {% if title_info_5 %}
                            {{ title_info_5 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;">{{ host_limit_5 }}</span>

                    <thead>
                    <tr>
                        {% for col_name in host_columns5 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in val5 %}
                        <tr>
                            {% for ii in i %}
                                <td>{{ ii }}</td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover">
                    <span style="color:#31708f;">                        {% if title_info_6 %}
                            {{ title_info_6 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;">{{ host_limit_6 }}</span>

                    <thead>
                    <tr>
                        {% for col_name in host_columns6 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in val6 %}
                        <tr>
                            {% for ii in i %}
                                <td>{{ ii }}</td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover">
                    <span style="color:#31708f;">                        {% if title_info_7 %}
                            {{ title_info_7 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;">{{ host_limit_7 }}</span>

                    <thead>
                    <tr>
                        {% for col_name in host_columns7 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in val7 %}
                        <tr>
                            {% for ii in i %}
                                <td>{{ ii }}</td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover">
                    <span style="color:#31708f;">                        {% if title_info_8 %}
                            {{ title_info_8 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;">{{ host_limit_8 }}</span>

                    <thead>
                    <tr>
                        {% for col_name in host_columns8 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in val8 %}
                        <tr>
                            {% for ii in i %}
                                <td>{{ ii }}</td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover">
                    <span style="color:#31708f;">                        {% if title_info_9 %}
                            {{ title_info_9 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;">{{ host_limit_9 }}</span>

                    <thead>
                    <tr>
                        {% for col_name in host_columns9 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in val9 %}
                        <tr>
                            {% for ii in i %}
                                <td>{{ ii }}</td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover">
                    <span style="color:#31708f;">                        {% if title_info_10 %}
                            {{ title_info_10 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;">{{ host_limit_10 }}</span>

                    <thead>
                    <tr>
                        {% for col_name in host_columns10 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in val10 %}
                        <tr>
                            {% for ii in i %}
                                <td>{{ ii }}</td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover">
                    <span style="color:#31708f;">                        {% if title_info_11 %}
                            {{ title_info_11 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;">{{ host_limit_11 }}</span>

                    <thead>
                    <tr>
                        {% for col_name in host_columns11 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in val11 %}
                        <tr>
                            {% for ii in i %}
                                <td>{{ ii }}</td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>

            </div>
            <h2 class="page-header">数据库信息</h2>
            <div id="table_db">
                <table class="table table-striped table-bordered table-hover column">
                    <span style="color: #31708f">                        {% if desc0 %}
                            {{ desc0 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;">{{ limit0 }}</span>
                    <thead>
                    <tr>
                        {% for col_name in columns0 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in result0 %}
                        <tr>
                            {% for col_value in i %}
{#                                                                        <td><pre  style="display:inline;  border: none">{{ col_value }}</pre></td>#}
                                <td>
                                    <pre style="display:inline-table; border: none">{{ col_value }}</pre>
                                </td>


                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover column">
                    <span style="color:#31708f;"> {% if desc1 %}
                            {{ desc1 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;">{{ limit1 }}</span>
                    <thead>
                    <tr>
                        {% for col_name in columns1 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in result1 %}
                        <tr>
                            {% for col_value in i %}
{#                                                                        <td><pre  style="display:inline;  border: none">{{ col_value }}</pre></td>#}
                                <td>
                                    <pre style="display:inline-table; border: none">{{ col_value }}</pre>
                                </td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover column">
                    <span style="color:#31708f;"> {% if desc2 %}
                            {{ desc2 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;">{{ limit2 }}</span>
                    <thead>
                    <tr>
                        {% for col_name in columns2 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in result2 %}
                        <tr>
                            {% for col_value in i %}
                                {#                                        <td><pre  style="display:inline;  border: none">{{ col_value }}</pre></td>#}
                                <td>
                                    <pre style="display:inline-table; border: none">{{ col_value }}</pre>
                                </td>


                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover column">
                    <span style="color:#31708f;"> {% if desc3 %}
                            {{ desc3 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;">{{ limit3 }}</span>
                    <thead>
                    <tr>
                        {% for col_name in columns3 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in result3 %}
                        <tr>
                            {% for col_value in i %}
                                {#                                        <td><pre  style="display:inline;  border: none">{{ col_value }}</pre></td>#}
                                <td>
                                    <pre style="display:inline-table; border: none">{{ col_value }}</pre>
                                </td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover column">
                    <span style="color:#31708f;"> {% if desc4 %}
                            {{ desc4 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;"> {{ limit4 }}</span>
                    <thead>
                    <tr>
                        {% for col_name in columns4 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in result4 %}
                        <tr>
                            {% for col_value in i %}
                                {#                                        <td><pre  style="display:inline;  border: none">{{ col_value }}</pre></td>#}
                                <td>
                                    <pre style="display:inline-table; border: none">{{ col_value }}</pre>
                                </td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover column">
                    <span style="color:#31708f;"> {% if desc5 %}
                            {{ desc5 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;"> {{ limit5 }}</span>
                    <thead>
                    <tr>
                        {% for col_name in columns5 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in result5 %}
                        <tr>
                            {% for col_value in i %}
                                {#                                        <td><pre  style="display:inline;  border: none">{{ col_value }}</pre></td>#}
                                <td>
                                    <pre style="display:inline-table; border: none">{{ col_value }}</pre>
                                </td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover column">
                    <span style="color:#31708f;"> {% if desc6 %}
                            {{ desc6 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;"> {{ limit6 }}</span>
                    <thead>
                    <tr>
                        {% for col_name in columns6 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in result6 %}
                        <tr>
                            {% for col_value in i %}
                                {#                                        <td><pre  style="display:inline;  border: none">{{ col_value }}</pre></td>#}
                                <td>
                                    <pre style="display:inline-table; border: none">{{ col_value }}</pre>
                                </td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover column">
                    <span style="color:#31708f;"> {% if desc7 %}
                            {{ desc7 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;">{{ limit7 }}</span>
                    <thead>
                    <tr>
                        {% for col_name in columns7 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in result7 %}
                        <tr>
                            {% for col_value in i %}
                                {#                                        <td><pre  style="display:inline;  border: none">{{ col_value }}</pre></td>#}
                                <td>
                                    <pre style="display:inline-table; border: none">{{ col_value }}</pre>
                                </td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover column">
                    <span style="color:#31708f;"> {% if desc8 %}
                            {{ desc8 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;">{{ limit8 }}</span>
                    <thead>
                    <tr>
                        {% for col_name in columns8 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in result8 %}
                        <tr>
                            {% for col_value in i %}
                                {#                                        <td><pre  style="display:inline;  border: none">{{ col_value }}</pre></td>#}
                                <td>
                                    <pre style="display:inline-table; border: none">{{ col_value }}</pre>
                                </td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover column">
                    <span style="color:#31708f;"> {% if desc9 %}
                            {{ desc9 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;"> {{ limit9 }}</span>
                    <thead>
                    <tr>
                        {% for col_name in columns9 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in result9 %}
                        <tr>
                            {% for col_value in i %}
                                {#                                        <td><pre  style="display:inline;  border: none">{{ col_value }}</pre></td>#}
                                <td>
                                    <pre style="display:inline-table; border: none">{{ col_value }}</pre>
                                </td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover column">
                    <span style="color:#31708f;"> {% if desc10 %}
                            {{ desc010}} &nbsp
                    {% endif %}</span>
                    <span style="color:red;"> {{ limit10 }}</span>
                    <thead>
                    <tr>
                        {% for col_name in columns10 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in result10 %}
                        <tr>
                            {% for col_value in i %}
                                {#                                        <td><pre  style="display:inline;  border: none">{{ col_value }}</pre></td>#}
                                <td>
                                    <pre style="display:inline-table; border: none">{{ col_value }}</pre>
                                </td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover column">
                    <span style="color:#31708f;"> {% if desc11 %}
                            {{ desc11 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;"> {{ limit11 }}</span>
                    <thead>
                    <tr>
                        {% for col_name in columns11 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in result11 %}
                        <tr>
                            {% for col_value in i %}
                                {#                                        <td><pre  style="display:inline;  border: none">{{ col_value }}</pre></td>#}
                                <td>
                                    <pre style="display:inline-table; border: none">{{ col_value }}</pre>
                                </td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover column">
                    <span style="color:#31708f;"> {% if desc12 %}
                            {{ desc12 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;"> {{ limit12 }}</span>
                    <thead>
                    <tr>
                        {% for col_name in columns12 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in result12 %}
                        <tr>
                            {% for col_value in i %}
                                {#                                        <td><pre  style="display:inline;  border: none">{{ col_value }}</pre></td>#}
                                <td>
                                    <pre style="display:inline-table; border: none">{{ col_value }}</pre>
                                </td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover column">
                    <span style="color:#31708f;"> {% if desc13 %}
                            {{ desc13 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;"> {{ limit13 }}</span>
                    <thead>
                    <tr>
                        {% for col_name in columns13 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in result13 %}
                        <tr>
                            {% for col_value in i %}
                                {#                                        <td><pre  style="display:inline;  border: none">{{ col_value }}</pre></td>#}
                                <td>
                                    <pre style="display:inline-table; border: none">{{ col_value }}</pre>
                                </td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover column">
                    <span style="color:#31708f;"> {% if desc14 %}
                            {{ desc14 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;"> {{ limit14 }}</span>
                    <thead>
                    <tr>
                        {% for col_name in columns14 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in result14 %}
                        <tr>
                            {% for col_value in i %}
                                {#                                        <td><pre  style="display:inline;  border: none">{{ col_value }}</pre></td>#}
                                <td>
                                    <pre style="display:inline-table; border: none">{{ col_value }}</pre>
                                </td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover column">
                    <span style="color:#31708f;"> {% if desc15 %}
                            {{ desc15 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;"> {{ limit15 }}</span>
                    <thead>
                    <tr>
                        {% for col_name in columns15 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in result15 %}
                        <tr>
                            {% for col_value in i %}
                                {#                                        <td><pre  style="display:inline;  border: none">{{ col_value }}</pre></td>#}
                                <td>
                                    <pre style="display:inline-table; border: none">{{ col_value }}</pre>
                                </td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover column">
                    <span style="color:#31708f;"> {% if desc16 %}
                            {{ desc16 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;"> {{ limit16 }}</span>
                    <thead>
                    <tr>
                        {% for col_name in columns16 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in result16 %}
                        <tr>
                            {% for col_value in i %}
                                {#                                        <td><pre  style="display:inline;  border: none">{{ col_value }}</pre></td>#}
                                <td>
                                    <pre style="display:inline-table; border: none">{{ col_value }}</pre>
                                </td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover column">
                    <span style="color:#31708f;"> {% if desc17 %}
                            {{ desc17 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;"> {{ limit17 }}</span>
                    <thead>
                    <tr>
                        {% for col_name in columns17 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in result17 %}
                        <tr>
                            {% for col_value in i %}
                                {#                                        <td><pre  style="display:inline;  border: none">{{ col_value }}</pre></td>#}
                                <td>
                                    <pre style="display:inline-table; border: none">{{ col_value }}</pre>
                                </td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover column">
                    <span style="color:#31708f;"> {% if desc18 %}
                            {{ desc018}} &nbsp
                    {% endif %}</span>
                    <span style="color:red;"> {{ limit18 }}</span>
                    <thead>
                    <tr>
                        {% for col_name in columns18 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in result18 %}
                        <tr>
                            {% for col_value in i %}
                                {#                                        <td><pre  style="display:inline;  border: none">{{ col_value }}</pre></td>#}
                                <td>
                                    <pre style="display:inline-table; border: none">{{ col_value }}</pre>
                                </td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <table class="table table-striped table-bordered table-hover column">
                    <span style="color:#31708f;"> {% if desc19 %}
                            {{ desc19 }} &nbsp
                    {% endif %}</span>
                    <span style="color:red;">{{ limit19 }}</span>
                    <thead>
                    <tr>
                        {% for col_name in columns19 %}
                            <th>{{ col_name }}</th>
                        {% endfor %}
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in result19 %}
                        <tr>
                            {% for col_value in i %}
                                {#                                        <td><pre  style="display:inline;  border: none">{{ col_value }}</pre></td>#}
                                <td>
                                    <pre style="display:inline-table; border: none">{{ col_value }}</pre>
                                </td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
            </div>
            <h2 class="page-header">阀值信息</h2>
            <table class="table table-striped table-bordered table-hover">
                <thead>
                <tr>
                    <th>名称</th>
                    <th>监控项</th>
                    <th>阀值</th>
                    <th>备注</th>
                </tr>
                </thead>
                <tbody>
                {% for i in limit_res %}
                    <tr>
                        {#                        <td><input type="checkbox"/></td>#}
                        <td style="display:none">{{ i.id }}</td>
                        <td>{{ i.monitor_name }}</td>
                        <td>{{ i.monitor_point }}</td>
                        <td>{{ i.limit_values }}</td>
                        <td>{{ i.remark }}</td>
                    </tr>
                {% endfor %}
                </tbody>
            </table>

        </div>
    </div>
{% endblock %}
{% block script %}
    <script>
        {#    $(document).ready(function () {#}
        {#        $("table thead").each(function (){#}
        {#          $(this).find("th").each(function(){#}
        {#              aa = $(this).text()#}
        {#              if (aa == ''){#}
        {#                  console(111)#}
        {#              }#}
        {#              console.log(aa)#}
        {#          })#}
        {#        })#}
        {##}
        {#    })#}

        $(document).ready(function () {
            $("table thead").each(function () {
                if ($(this).find("th").length > 0) {
                    console.log(1)
                } else {
                    $(this).parent().remove()
                }
            })

            $("#table_host").each(function () {
                if ($(this).find("table").length > 0) {

                    console.log(3)
                } else {
                    $(this).after('<div class="text-info" ><li> 此部分没有内容 </li> &nbsp </div>')
                }
            })
            $("#table_db").each(function () {
                if ($(this).find("table").length > 0) {

                    console.log(3)
                } else {
                    $(this).after('<div class="text-info" ><li> 此部分没有内容 </li> &nbsp </div>')
                }
            })

        })
    </script>
{% endblock %}
